﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Mapabc="clr-namespace:Com.Mapabc.Maps.Api;assembly=Mapabc.SilverLight.API"
	xmlns:i="clr-namespace:Microsoft.Expression.Interactivity.Layout;assembly=Microsoft.Expression.Interactions"
     xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:i1="http://schemas.microsoft.com/expression/2010/interactivity" x:Class="LantinxLBS.MainPage"
    mc:Ignorable="d"
	 
    d:DesignHeight="600" d:DesignWidth="1000">
    <UserControl.Resources>
        <DataTemplate x:Key="styleListMarks">
            <StackPanel Orientation="Horizontal">
                <Button Content="删除" Tag="{Binding}" Click="Button_Click"/>
                <TextBlock Text="{Binding MarkName}" ToolTipService.ToolTip="{Binding MarkName}" MouseLeftButtonDown="TextBlock_MouseLeftButtonDown" />
            </StackPanel>
        </DataTemplate>
        <DataTemplate x:Key="styleUser">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="用户名:"/>
                <TextBlock Text="{Binding UserName}"/>
                <TextBlock Text="电话号码:"/>
                <TextBlock Text="{Binding Phone}"/>
            </StackPanel>
        </DataTemplate>
    </UserControl.Resources>
	<Grid x:Name="LayoutRoot" Background="White">
		 <Mapabc:MMap x:Name="map" Scale="Show" Toolbar="Visible" OverViewMap="Show"  Center="116.397428,39.90923"  ZoomLevel="5">
        </Mapabc:MMap>
		<Grid HorizontalAlignment="Right" Height="273" Margin="0,177,12,0" VerticalAlignment="Top" Width="270">
		 
			<i1:Interaction.Behaviors>
				<ei:MouseDragElementBehavior/>
			</i1:Interaction.Behaviors>
		 
			<Border x:Name="showMapBorder" BorderThickness="5" CornerRadius="5"  BorderBrush="#16589a" Opacity="0.9" d:LayoutOverrides="Height">
		
            
				<Grid Height="263" Background="#16589a" Opacity="0.8">
					<Grid Height="233" HorizontalAlignment="Left" Margin="6,24,0,0" x:Name="grid1" VerticalAlignment="Top" Width="248" Background="White">
						<Grid.RowDefinitions>
							<RowDefinition Height="26" />
							<RowDefinition Height="143*" />
						</Grid.RowDefinitions>
						<TextBlock Height="23" HorizontalAlignment="Left" Margin="0,3,0,0" x:Name="textBlock1" Text="选择标注:" VerticalAlignment="Top" Width="202" Foreground="Black" />
						<ListBox Grid.Row="1" Height="207" HorizontalAlignment="Left" x:Name="lstMarks"  ItemsSource="{Binding}" ItemTemplate="{StaticResource styleListMarks}"
							VerticalAlignment="Top" Width="248" />
					</Grid>
				</Grid>
			</Border>
		</Grid>
		<StackPanel Height="28" HorizontalAlignment="Left" Margin="135,0,0,0" x:Name="stackPanel1" VerticalAlignment="Top" Orientation="Horizontal" Background="#9B000000">
			<Button Content="用户管理" Height="28" x:Name="btnRole" Width="75" Click="btnRole_Click" />
			<ToggleButton  x:Name="btnAddMarks" Height="28" Width="75" Click="AddMarks_Click" Content="添加标注"/>
			<Button x:Name="btnPlans" Content="计划管理" Height="28"  Width="75" Click="btnPlans_Click" />
			<Button Content="任务管理" Height="28" x:Name="btnWorkItemType" Width="75" Click="btnWorkItemType_Click" />
            <ComboBox x:Name="cmbUser" Width="280" ItemTemplate="{StaticResource styleUser}"/>
			<sdk:DatePicker x:Name="dateGTimeStamp"/>
			<Button Content="查询位置" Height="28" x:Name="btnSearch" Width="75" Click="btnSearch_Click" />
            <Button x:Name="btnSearchTable" Width="75" Height="28" Content="查询报表" Click="btnSearchTable_Click" ></Button>
		</StackPanel>
	</Grid>
</UserControl>
